<h1>Encoder Home Page</h1>
<h2>Search Student</h2>

<div id="search_student">

	<?php echo form_open('encoder/searchStudent'); ?>
	
	<table>
		<tr>
			<td width="120px"><?php echo form_label('Student Number: ', 'stdno');?></td>
			<td>
				<?php
					$data = array(
						// You can add a class here later for styling.
						'name' => 'stdno',
						'id' => 'stdno',
						'value' => set_value('stdno'),
						'maxlength'   => '10',
						'size'        => '15',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_error('stdno'); ?>
			</td>
		</tr>
		
		<tr>
			<td>
				<?php
					$data = array(
						// You can add a class here later for styling.
						'value' => 'Search',
					); 
					echo form_submit($data);
				?>
			</td>
		</tr>
	</table>
	<?php echo form_close(); ?>
</div>

<!-- START OF FILE UPLOAD -->
</br>
<h2> File Upload </h2>
<?php echo $error;?>

<?php echo form_open_multipart('encoder/do_upload');?>

<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="upload" />

<?php echo form_close(); ?>
<!-- END OF FILE UPLOAD -->	

<?php echo anchor('encoder/logout','Logout');?>
		